package com.cp.admin.api.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by 花生 on 2018-03-10.
 * desc:协议跳转Controller
 */
@Slf4j
@Controller
@RequestMapping("/f")
@Api(description = "推广下载HTML")
public class AgreementController {

    @ApiOperation("下载页面")
    @GetMapping("/download")
    public ModelAndView download(){
        ModelAndView mav = new ModelAndView();
        mav.setViewName("/download/download.html");
        return mav;
    }

}
